import React, { Component } from 'react';
import { Button, DatePicker } from 'antd';
import moment from 'moment';
import utils from '@utils/index';

class Login extends Component {
    componentDidMount() {
        const params = utils.getUrlParams();
        console.log(params);
    }

    handleChangeDate = (date: moment.Moment | null, dateString: string) => {
        console.log(date, dateString);
    }

    render() {
        return (
            <div>
                这里是登录页
                <Button type="primary">登录</Button>
                <DatePicker onChange={this.handleChangeDate} />
            </div>
        );
    }
}

export default Login;
